{layout name="layout" $title/}
<div class="col-md-9">
  <div class="panel panel-default panel-success">
    <div class="panel-heading">
      <h3 class="panel-title">筛选框</h3>
    </div>
    <div class="panel-body">
      <form class="form-horizontal" method="post" class="post" action="{:url('office/meeting_room/index')}">
        <div class="form-group">
          <label for="inputEmail3" class="col-md-2 control-label">是否某事情</label>
          <div class="col-md-9">
              <label class="radio-inline">
                <input type="radio" name="is_sth" id="inlineRadio1" value="0" > 否
              </label>
              <label class="radio-inline">
                <input type="radio" name="is_sth" id="inlineRadio2" value="1" >是
              </label>
          </div>
        </div>
        <div class="form-group">
          <label for="inputPassword3" class="col-md-2 control-label">某物数量</label>
          <div class="col-md-9">
            <input type="text" name='sth_num' class="form-control" id="inputPassword3" placeholder="number">
          </div>
        </div>
        <div class="form-group">
          <label for="inputEmail3" class="col-md-2 control-label">状态</label>
          <div class="col-md-9">
            <select name="static" class="form-control">
              <option value='' >--请选择--</option>
              <option value='1' >正常</option>
              <option value='2' >维修</option>
              <option value='3' >还没想到</option>
              <option value='4' >其他</option>
            </select>
          </div>
        </div>
        <div class="form-group">
          <div class="col-md-offset-2 col-md-9">
            <p>
                  <button type="submit" class="btn btn-success ">搜  索  <span class="glyphicon glyphicon-search" aria-hidden="true"></span></button>
                  <button type="submit" class="btn btn-primary ">清  空   <span class="glyphicon glyphicon-refresh" aria-hidden="true"></span></button>
                  <a class="btn btn-primary" href="{:url('office/meeting_room/create')}" class='btn'>添加会议室  <span class="glyphicon glyphicon-th-large" aria-hidden="true"></span></a>
            </p>
          </div>
        </div>
      </form>
    </div>
  </div>
  <div class="panel panel-default  panel-info">
    <div class="panel-heading">
      <h3 class="panel-title text-center">会议室信息列表（{$count}/{$countall}）</h3>
    </div>
    <div class="panel-body">
      <div class="table-responsive">
        <table class="table table-striped .table-bordered  table-hover">
          <tr>
            <th class="">序号</td>
            <th class="">编号</td>
            <th class="">名称</td>
            <th class="">增加记录时间</td>
            <th class="">修改记录时间</td>
            <th class="">增加记录人</td>
            <th class="">是否某事物</td>
            <th class="">某物品数量</td>
            <th class="">状态</td>
            <th class="">操作</td>
          </tr>
          {volist name="list" id="meetingroom" }
          <tr>
            <td class="">{$i}</td>
            <td class="">{$meetingroom.code}</td>
            <td class="">{$meetingroom.title}</td>
            <td class="">{$meetingroom.create_time}</td>
            <td class="">{$meetingroom.update_time}</td>
            <td class="">{$meetingroom.create_name}</td>
            <td class="">{$meetingroom.is_sth}</td>
            <td class="">{$meetingroom.sth_num}</td>
            <td class="">{$meetingroom.static}</td>
            <td class="">
              <a href="{:url('office/meeting_room/read','id='.$meetingroom.id)}"><span class="glyphicon glyphicon-list" aria-hidden="true"></span></a>
              <a href="{:url('office/meeting_room/edit','id='.$meetingroom.id)}"><span class="glyphicon glyphicon-pencil" aria-hidden="true"></span></a>
            </td>
          </tr>
          {/volist}
        </table>
          <div class="text-center"><p>{$list->render()}</p></div>
      </div>
    </div>
  </div>
</div>